﻿@using GSLMS.WebAPP
@model GSLMS.Entity.TB_APP_PROCONINFO
@{
    Layout = null;
    var ddlRelation = ViewData["Relation"] as SelectList;    
}
<div class="pageContent">
    <form method="post" action="DianDang/Apply/ProInfo/ConInfoCreate?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, CondialogAjaxDone)">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="350">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.PROID)
        @Html.HiddenFor(model => model.REGINFOID)
        <p>
            <label>
                姓名：</label>
            @Html.TextBoxFor(model => model.CONNAME, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.CONNAME)
        </p>
        <p>
            <label>
                性别：</label>
            @Html.RadioButtonFor(model => model.GENDER, "男", new { @class = "" })
            男
            @Html.RadioButtonFor(model => model.GENDER, "女", new { @class = "" })
            女
            @Html.ValidationMessageFor(model => model.GENDER)
        </p>
        <p>
            <label>
                关系：</label>
            @Html.DropDownListFor(model => model.RELATION, ddlRelation, new { @class = "combox", @selectedvalue = Model.RELATION })
            @Html.ValidationMessageFor(model => model.RELATION)
        </p>
        <p>
            <label>
                单位：</label>
            @Html.TextBoxFor(model => model.CORPNAME, new { @class = "" })
            @Html.ValidationMessageFor(model => model.CORPNAME)
        </p>
        <p style="width:95%">
            <label>
                单位电话：</label>
            @Html.TextBoxFor(model => model.TELCODE, new { @value = "0755", @style = "width:50px", @alt = "区号" })
            @Html.TextBoxFor(model => model.TEL, new { })
            @Html.TextBoxFor(model => model.TELSUB, new { @style = "width:50px", @alt = "分机号" })
            @Html.ValidationMessageFor(model => model.TEL)
        </p>
        <p>
            <label>
                单位地址：</label>
            @Html.TextBoxFor(model => model.CORPADDR, new { @class = "" })
            @Html.ValidationMessageFor(model => model.CORPADDR)
        </p>
        <p>
            <label>
                住宅地址：</label>
            @Html.TextBoxFor(model => model.HOUADDR, new { @class = "" })
            @Html.ValidationMessageFor(model => model.HOUADDR)
        </p>
        <p>
            <label>
                住宅电话：</label>
            @Html.TextBoxFor(model => model.HOUTELCODE, new { @value = "0755", @style = "width:50px", @alt = "区号" })
            @Html.TextBoxFor(model => model.HOUTEL, new { })
            @Html.ValidationMessageFor(model => model.TEL)
        </p>
        <p>
            <label>
                手机1：</label>
            @Html.TextBoxFor(model => model.MOBILE1, new { @class = "" })
            @Html.ValidationMessageFor(model => model.MOBILE1)
        </p>
        <p>
            <label>
                手机2：</label>
            @Html.TextBoxFor(model => model.MOBILE2, new { @class = "" })
            @Html.ValidationMessageFor(model => model.MOBILE2)
        </p>
        <p>
            <label style="white-space:nowrap;width:150px">
                联系人是否知悉此项贷款：</label>
            @Html.RadioButtonFor(model => model.ISKNOW, "0", new { @class = "" })
            否
            @Html.RadioButtonFor(model => model.ISKNOW, "1", new { @class = "" })
            是
            @Html.ValidationMessageFor(model => model.ISKNOW)
        </p>
        <p>
            <label>
                建议沟通方式：</label>
            @Html.TextBoxFor(model => model.COMMOD, new { @class = "" })
            @Html.ValidationMessageFor(model => model.COMMOD)
        </p>
        <div class="divider">
        </div>
        <p style="width: 90%">
            <label>
                详细内容：</label>
            @Html.TextAreaFor(model => model.REMARK, new { @cols = "70", @rows = "5" })
            @Html.ValidationMessageFor(model => model.REMARK)
        </p>
    </div>
   <div class="formBar">
    <ul>
        <li>
            <div class="buttonActive">
                <div class="buttonContent">
                    <button type="submit">
                        保存</button></div>
            </div>
        </li>       
    </ul>
</div>
    </form>
</div>
<script>
    function CondialogAjaxDone(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            RefreshProConInfoList();
            RefreshProConInfoCreate(0);
        }
    }
</script>
